home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / ANSISYS.TXT < prev    next >
Text File  |  1993-04-05  |  11KB  |  227 lines

  1.  
  2.                         ANSI.SYS's Escape Sequences Files.
  3.  
  4.  
  5.  
  6.         WARNING: You must press the ESC key, the [, the number wanted, 
  7.                  then the tiny M key.
  8.  
  9.                                  Graphics functions:
  10.  
  11.            0 : All Attributes Off
  12.            1 : Bold On
  13.            4 : Underscore (Monochrome Display Only)
  14.            5 : Blink On
  15.            7 : Reverse Video On
  16.            8 : Concealed On
  17.  
  18.           That's all for the Graphics Functions existing in ANSI.SYS.
  19.  
  20.                                  Foreground colors:
  21.  
  22.                 30 : Black                             34 : Blue
  23.                 31 : Red                               35 : Magenta
  24.                 32 : Green                             36 : Cyan
  25.                 33 : Yellow                            37 : White
  26.  
  27.                                  Background colors:
  28.  
  29.                 40 : Black                             44 : Blue
  30.                 41 : Red                               45 : Magenta
  31.                 42 : Green                             46 : Cyan
  32.                 43 : Yellow                            47 : White
  33.  
  34.                   ( Background is finally the Foreground + 10 )
  35.  
  36.                                  --------------------
  37.   
  38.        Code     Description
  39.     ------------------------------------------------------------------------
  40.         Pn   :   Numeric Parameter - a Decimal Number that you Specify with
  41.                  ASCII digits.
  42.  
  43.         Ps   :   Selective Paramater - a Decimal Number that you use to 
  44.                  select a Subfunction. You may specify More than One Sub- 
  45.                  function by separating the parameters with semicolons.
  46.  
  47.         Pl   :   Line Parameter - a Decimal Number that you Specify with
  48.                  ASCII digits.
  49.  
  50.         Pc   :   Column Paramater - a Decimal Number that you Specify with
  51.                  ASCII digits.
  52.  
  53.                                    ------------------
  54.  
  55.         Don't Forget! All theses sequences are precede by the ESC key.
  56.  
  57.                                    ------------------
  58.         Sequence   Function
  59.     ------------------------------------------------------------------------
  60.         [Pl;Pc H : Cursor Position (CUP)
  61.         
  62.         [Pl;Pc F : Horizontal & Vertical Position (HVP). 
  63.                    CUP and HVP move the cursor to the position specified
  64.                    by the parameters. When no parameters are provided,
  65.                    the cursor move to the home position (the upper-left
  66.                    corner of the screen).
  67.  
  68.         [Pn A    : Cursor Up (CUU)
  69.                    This sequence moves the cursor up Pn lines without chan-
  70.                    ging columns. If the cursor is Already on the Top line,
  71.                    then it's ignores the CUU sequence.
  72.  
  73.         [Pn B    : Cursor Down (CUD)
  74.                    This sequence moves the cursor down Pn lines without chan-
  75.                    ging columns. If the cursor is already on the bottom line, 
  76.                    then it's igrnores the CUD sequence.
  77.  
  78.         [Pn C    : Cursor Forward (CUF)
  79.                    The CUF sequence moves the cursor forward Pn columns with-
  80.                    out changing lines. If the cursor is already in the far
  81.                    right column, then it's ignores the CUF sequence.
  82.  
  83.         [Pn D    : Cursor Backward (CUB)
  84.                    This escape sequence moves the cursor back Pn columns with-
  85.                    out changing lines. If the cursor is already in the far 
  86.                    left columns, then it's ignore the CUB sequence.
  87.  
  88.         [6n      : Device Status Report (DSR)
  89.                    The console driver outputs an RCP sequence when it receives 
  90.  
  91.                    the DSR escape sequence.
  92.  
  93.         [s       : Save Cursor Position (SCP)
  94.                    The console driver saves the current cursor position. This
  95.                    position can be restored with the RCP sequence.
  96.  
  97.         [u       : Restore Cursor Position (RCP)
  98.                    This sequence restores the cursor position to the value it
  99.                    had when the console driver received the SCP sequence.
  100.  
  101.         [2j      : Erase Display (ED)
  102.                    The ED sequence erases the screen. The cursor then goes
  103.                    to the home position.
  104.  
  105.         [K       : Erase Line (EL)
  106.                    This sequences erases from the cursor to the end of the
  107.                    line (including cursor position).
  108.  
  109.   [Ps; ... ; Ps m: Set Graphics Rendition (SGR)
  110.                    The SGR escape sequence calls the graphic functions
  111.                    specified by the following numeric parameters. These
  112.                    functions remain until the next occurence of an SGR
  113.                    escape sequence.
  114.  
  115.         [=Ps h     Set mode (SM)
  116.         [=h        The SM escape sequence changes the screen width or type
  117.         [=0h       to one of the following numeric parameters:
  118.  
  119.                  Screen Width Parameters
  120.             ----------------------------------
  121.             0  : 40 x 25 B&W
  122.             1  : 40 x 25 color
  123.             2  : 80 x 25 B&W
  124.             3  : 80 x 25 color
  125.             4  : 320 x 200 color
  126.             5  : 320 x 200 B&W
  127.             6  : 640 x 200 B&W
  128.             7  : Wraps at the end of Each line
  129.             14 : 640 x 200 color
  130.             15 : 640 x 350 mono
  131.             16 : 640 x 350 color 
  132.             17 : 640 x 480 color
  133.             18 : 640 x 480 color (both 17-18 are good)
  134.             19 : 320 x 200 color 
  135.             ------------------------------------            
  136.  
  137.         [= Ps 1  : Reset mode (RM)
  138.                    Parameters for RM are the same as for SM (Set Mode)
  139.                    except parameter 7 resets the mode that causes wrapping
  140.                    at the end of each line.
  141.  
  142.  [code;string;...p: Allows redefinition of keyboard keys to a specified
  143.                     string where:
  144.                     'string' is either the ASCII code for a single character
  145.                     or a string contained in quotation marks. For example, 
  146.                     both 65 and "A" can be used to represent an uppercase.
  147.                     'code' is one or more of the following values that re-
  148.                     present keyboard keys. Semicolons shown in this table
  149.                     must be entered in addition to the required semicolons
  150.                     in the command line.
  151.  
  152.          Key                     Code
  153.    -------------------------------------------------------------------------
  154.                    Alone     Shift-   Ctrl-     Alt-
  155.    ------------------------------------------------------------------------- 
  156.           F1        0;59      0;84     0;94    0;104
  157.           F2        0;60      0;85     0;95    0;105
  158.           F3        0;61      0;86     0;96    0;106
  159.           F4        0;62      0;87     0;97    0;107
  160.           F5        0;63      0;88     0;98    0;108
  161.           F6        0;64      0;89     0;90    0;109
  162.           F7        0;65      0;90    0;100    0;110
  163.           F8        0;66      0;91    0;101    0;111
  164.           F9        0;67      0;92    0;102    0;112
  165.           F10       0;68      0;93    0;103    0;113
  166.           F11       0;133     0;135   0;137    0;139
  167.           F12       0;134     0;136   0;138    0;140
  168.          Home       0;71      55      0;119    -----
  169.       Up Arrow      0;72      56      -----    -----
  170.       Page Up       0;73      57      0;132    -----
  171.      Left Arrow     0;75      52      0;115    -----
  172.      Down Arrow     0;77      54      0;116    -----
  173.           End       0;79      49      0;117    -----
  174.      Page Down      0;81      51      0;118    -----
  175.         Insert      0;82      48      -----    -----
  176.         Delete      0;83      46      -----    -----
  177.     Printscreen     -----     -----   0;114    -----
  178.  
  179.             ------------------------------------------
  180.             and for the keyboard's alphabeticals keys:
  181.             ------------------------------------------
  182.  
  183.          Key                     Code
  184.    ------------------------------------------------------------------------
  185.                    Alone     Shift-   Ctrl-     Alt-
  186.    ------------------------------------------------------------------------
  187.           A         97        65       1        0;30
  188.           B         98        66       2        0;48
  189.           C         99        67       3        0;46
  190.           D         100       68       4        0;32
  191.           E         101       69       5        0;18
  192.           F         102       70       6        0;33
  193.           G         103       71       7        0;34
  194.           H         104       72       8        0;35
  195.           I         105       73       9        0;23
  196.           J         106       74      10        0;36
  197.           K         107       75      11        0;37
  198.           L         108       76      12        0;38
  199.           M         109       77      13        0;50
  200.           N         110       78      14        0;49
  201.           O         111       79      15        0;24
  202.           P         112       80      16        0;25
  203.           Q         113       81      17        0;16
  204.           R         114       82      18        0;19
  205.           S         115       83      19        0;31
  206.           T         116       84      20        0;20
  207.           U         117       85      21        0;22
  208.           V         118       86      22        0;47
  209.           W         119       87      23        0;17
  210.           X         120       88      24        0;45
  211.           Y         121       89      25        0;21
  212.           Z         122       90      26        0;44
  213.           1         49        33      -----     0;120
  214.           2         50        64      -----     0;121
  215.           3         51        35      -----     0;122
  216.           4         52        36      -----     0;123
  217.           5         53        37      -----     0;124
  218.           6         54        94      -----     0;126
  219.           7         55        38      -----     0;127
  220.           8         56        42      -----     0;128
  221.           9         57        40      -----     0;129
  222.           0         48        41      -----     0;130
  223.           .         45        95      -----     0;131
  224.           =         61        43      -----       -----
  225.           TAB       9         0;15    -----       -----
  226.           NULL      0;3       -----   -----       -----
  227.